import {
  SUPPLIER_TYPE_SELECT_LIST,
  SUPPLIER_CATEGORY_SELECT_LIST
} from '@supplier/constants/common';

// 内部管理 到货时间管理
const FORM_ITEM_LIST = [
  {
    prop: 'supplierCode',
    label: '供应商代码',
    type: 'input'
  },
  {
    prop: 'supplierName',
    label: '供应商名称',
    type: 'input'
  },
  {
    prop: 'supplierType',
    label: '供应商类型',
    type: 'select',
    clearable: true,
    options: SUPPLIER_TYPE_SELECT_LIST,
  },
  {
    prop: 'supplierClassify',
    label: '供应商分类',
    type: 'select',
    clearable: true,
    options: SUPPLIER_CATEGORY_SELECT_LIST
  },
  {
    prop: 'managementAreaId',
    label: '管理区域',
    type: 'managementArea'
  },
  {
    prop: 'logisticsCenter',
    label: '物流中心',
    type: 'input'
  },
  {
    prop: 'createUser',
    label: '创建人',
    type: 'input'
  },
  {
    prop: 'createTime',
    label: '创建时间',
    type: 'datePicker',
    datePickerType: 'daterange',
    valueFormat: 'yyyy-MM-dd'
  },
  {
    prop: 'arrivalTime',
    label: '到货时间',
    type: 'timeRange',
  },
]
// 表头
const TABLE_COLUMNS = [
  {
    title: '供应商代码',
    key: 'supplierCode'
  },
  {
    title: '供应商名称',
    key: 'supplierName',
  },
  {
    title: '供应商类型',
    key: 'supplierTypeName',
  },
  {
    title: '供应商分类',
    key: 'supplierClassifyName',
  },
  {
    title: '供应商管理区域',
    key: 'managementAreaName',
  },
  {
    title: '物流中心',
    key: 'logisticsCenter',
  },
  {
    title: '到货时间',
    key: 'arrivalTime',
  },
  {
    title: '创建人',
    key: 'createUser',
  },
  {
    title: '创建时间',
    key: 'createTime',
  },
]
export {
  FORM_ITEM_LIST,
  TABLE_COLUMNS,
}
